/**
 * http://usejsdoc.org/
 */
var mqtt = require('mqtt');

var client = mqtt.createClient(8080, 'localhost',{clientId:'helloworldhello', login:'linyanwen', clean:false});

client.subscribe('shansjlin',{qos:1});
console.log("subscribe topic shansjlin");

client.on('message', function (topic, message) {
	  console.log(message.toString());
});
